<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib prefix="powersi" uri="http://www.powersi.com.cn/tags"%>
<powersi:html>
<head>
<powersi:head title="设备性能报表" />

<script type="text/javascript"
	src="${rootPath}/resource/js/rgraph/RGraph.common.core.js"></script>
<script type="text/javascript"
	src="${rootPath}/resource/js/rgraph/RGraph.pie.js"></script>
</head>
<body>

	<powersi:form namespace="/report" action="DeviceReport!SheBeiShiYongTongJi.action">
		<powersi:groupbox title="查询条件">
			<powersi:editorlayout cols="4">
				<tr>
					<td><powersi:button type="submit" id="btCalc" value="查  询"
							></powersi:button></td>
				</tr>
			</powersi:editorlayout>
		</powersi:groupbox>

		<powersi:groupbox title="查询结果">
			<canvas id="cvs" width="600" height="250">[您的浏览器版本过低，不支持该报表插件]</canvas>
			<br>
			<p><font color="#FF0000">注：因小数位保留计算，设备占有比例可能稍有偏差</font></p>
		</powersi:groupbox>

	</powersi:form>
	<powersi:errors />
	<script type="text/javascript">

window.onload = function ()
{
	var pie = new RGraph.Pie('cvs', ${lstCount} )
    //.Set('exploded', [,15])
    .Set('shadow', true)
    .Set('shadow.color', '#aaa')
    .Set('labels', ${lstName})
    .Draw();
}

</script>
</body>
</powersi:html>